<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
</head>

<body>
    
    <h1>Edit Details</h1>
	
	<form:form method="POST" commandName="employee">

        <h1>Update site</h1>
       	<p>Please update your details below</p>
		<table border="1">
			<tbody>
				<tr>
					<td>Employee ID :</td>
					<td>${employee.idEmployee}</td>
					<form:input path="idEmployee" value="${employee.idEmployee}" type="hidden"/>
				</tr>
				<tr>
					<td>First name :</td>
					<td><form:input path="name" /></td>
					<td><form:errors path="name" cssClass="error"/></td>
				</tr>
				<tr>
					<td>Surname :</td>
					<td><form:input path="surname" /></td>
					<td><form:errors path="surname" cssClass="error"/></td>
				</tr>
				<tr>
					<td>Email address :</td>
					<td><form:input path="email" /></td>
					<td><form:errors path="email" cssClass="error"/></td>
				</tr>
				<tr>
					<td>Work telephone :</td>
					<td><form:input path="primarytelephone" /></td>
					<td><form:errors path="primarytelephone" cssClass="error"/></td>
				</tr>
				<tr>
					<td>Personal telephone :</td>
					<td><form:input path="secondarytelepohne" /></td>
					<td><form:errors path="secondarytelepohne" cssClass="error"/></td>
				</tr>
				<tr>
					<td>Profile :</td>
					<td><form:input path="profile"/></td>
				</tr>
				<tr>
					<td>Grade :</td>
					<td>
						<form:select path="roleproposed">
							<form:option value='Analyst 1' label='Analyst 1'/>
							<form:option value='Analyst 2' label='Analyst 2'/>
							<form:option value='Consultant' label='Consultant'/>
							<form:option value='Senior Consultant' label='Senior Consultant'/>
							<form:option value='Manager' label='Manager' />
							<form:option value='Senior Manager' label='Senior Manager' />
							<form:option value='Director' label='Director' />
							<form:option value='Partner' label='Partner' />
						</form:select>
					</td>
				</tr>
				<tr>
					<td>Photo :</td>
					<td><input type="file" name="photo" value="" /></td>
				</tr>
			</tbody>
		</table>
		<input type="submit" value="update" />
	</form:form>
	
</body>

</html>